package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorRoundPhotoApp;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorRoundPhotoAppServiceInterface 
 * @Description: OperatorRoundPhotoAppServiceInterface
 * @date 2017/6/28
 */
public interface OperatorRoundPhotoAppServiceInterface {

    /** 
    * @Title: saveHotwords
    * @Description: 新增/修改 轮播图
    * @param：OperatorRoundPhotoApp   
    * @return OperatorRoundPhotoApp    
    * @throws 
    */
    OperatorRoundPhotoApp saveRoundPhoto(OperatorRoundPhotoApp pp);

    /** 
    * @Title: getAllRoundphoto
    * @Description: 查询所有轮播图
    * @param：void  
    * @return List<OperatorRoundPhotoApp>   
    * @throws 
    */
    List<OperatorRoundPhotoApp> getAllRoundphoto(String cityId);

    /** 
    * @Title: getAllRoundPhotoByPage
    * @Description: 查询全部轮播图并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorRoundPhotoApp>   
    * @throws 
    */
    Page<OperatorRoundPhotoApp> getAllRoundPhotoByPage(Integer page, Integer size);

    /** 
    * @Title: deleteRoundPhotoById
    * @Description: 根据Id删除轮播图 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteRoundPhotoById(String id);

    /** 
    * @Title: getRoundPhotoById 
    * @Description: 根据Id查询轮播图
    * @param： String id
    * @return OperatorRoundPhotoApp    
    * @throws 
    */
    OperatorRoundPhotoApp getRoundPhotoById(String id);

    /** 
    * @Title: getAllRoundPhotoByWeightAndPage
    * @Description: 按权重排序分页查询轮播图 
     * @param：Integer page 页码  
     * @param：Integer size 条数    
    * @return Page<OperatorRoundPhotoApp> 
    * @throws 
    */
    Page<OperatorRoundPhotoApp> getAllRoundPhotoByWeightAndPage(Integer page, Integer size);
    
    void deleteRoundPhotoAll();
    void delectAllBycitycode(String cityId);
}
